package com.xiaojiang.entity;

import com.baomidou.mybatisplus.annotation.*;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 功能：住户表
 * 作者：小江
 * 日期：2024年10月21日
 */
@Data
@TableName("householders")
public class Householders {
    @TableId(type = IdType.AUTO)
    private Integer householderId;
    @NotEmpty
    private String householderName;
    @NotEmpty
    private String householderPhone;
    @NotEmpty
    private String householderCard;
    private String householderPhoto;
    private String carLicensePlate;
    @TableField(value = "user_role_id",insertStrategy = FieldStrategy.DEFAULT)
    private Integer userRoleId = 3;
    @TableField(value = "is_delete",insertStrategy = FieldStrategy.DEFAULT)
    private Integer isDelete = 0;
}
